<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智汇考途登录系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f8f9fa;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            max-width: 400px;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        h1 {
            margin-bottom: 20px;
            font-weight: 300;
            color: #343a40;
            font-size: 1.5rem;
            text-align: center;
        }
        .form-label {
            font-weight: 500;
            color: #495057;
            font-size: 0.9rem;
            text-align: left;
            display: block;
        }
        .form-control {
            border-radius: 4px;
            font-size: 0.9rem;
            width: 100%;
            box-sizing: border-box; /* 确保宽度包括内边距和边框 */
        }
        .btn {
            background-color: #007bff;
            color: white;
            border-radius: 4px;
            width: 100%;
        }
        .btn:hover {
            background-color: #0056b3;
        }
        .d-flex a.btn {
            background-color: #6c757d;
            flex: 1;
            margin-right: 10px;
            color: white;
            text-align: center;
        }
        .d-flex a.btn:last-child {
            margin-right: 0;
        }
        .d-flex a.btn:hover {
            background-color: #5a6268;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>智汇考途登录系统</h1>
        <form action="/" method="POST">
            <div class="form-group">
                <label for="user_type" class="form-label">选择身份:</label>
                <select class="form-control" name="user_type" id="user_type">
                    <option value="teacher">老师</option>
                    <option value="student">学生</option>
                    <option value="parent">家长</option>
                </select>
            </div>
            <div class="form-group">
                <label for="username" class="form-label">用户名:</label>
                <input type="text" id="username" name="username" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="password" class="form-label">密码:</label>
                <input type="password" id="password" name="password" class="form-control" required>
            </div>
            <button type="submit" name="login" class="btn">登录</button>
        </form>
        <div class="d-flex justify-content-between mt-3">
            <a href="/register" class="btn">注册</a>
            <a href="/forgot_password" class="btn">忘记密码</a>
        </div>
    </div>
</body>
</html>
